package com.victor.service;

import java.util.List;

import com.victor.entity.Problem;

public interface ProblemService {

	/**
	 * 获取问题列表（传类型）type 1.问答题,2.选择题,3.连线题,4.拼图题
	 * 
	 * @param type
	 * @return
	 */
	public List<Problem> getAllProblem(String type);

	/**
	 * 新建问题
	 * 
	 * @param problem
	 * @return
	 */
	public boolean createNewProblem(Problem problem);

	/**
	 * 批量删除问题
	 * 
	 * @param ids
	 * @return
	 */
	public boolean batchDeleteProblem(int[] ids);

	/**
	 * 修改问题信息
	 * 
	 * @param problem
	 * @return
	 */
	public boolean updateProblem(Problem problem);

}
